<?php
$this->breadcrumbs=array(
	'Purchase Orders' => array('vendor/purchaseOrders'),
	'#'.$model->po_number => array('view','id'=>$model->id),
	'Update',
);
?>

<?php if(Yii::app()->user->hasFlash('notify')): ?>

<div class="notifyBox">
	<?php echo Yii::app()->user->getFlash('notify'); ?>
	<ul>
		<li><a href="<?php echo $this->createUrl("purchaseOrder/view/id/{$model->id}"); ?>">View PO</a></li>
		<li><a href="<?php echo $this->createUrl("purchaseOrder/create"); ?>">Create another PO</a></li>
	</ul>
</div>

<?php endif; ?>

<h1>Update Purchase Order <?php echo $model->id; ?></h1>

<?php echo $this->renderPartial('_form', array(
										'model'=>$model,
										'item_codes'=>$item_codes,
										'item_names'=>$item_names,
										'item_costs'=>$item_costs,
										'line_items'=>$line_items)); ?>